package org.wukongcrm.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
    * 产品从表
    */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "goods_spec")
public class GoodsSpec implements Serializable {
    /**
     * 产品规格id
     */
    @TableId(value = "goods_spec_no", type = IdType.INPUT)
    private Integer goodsSpecNo;

    /**
     * 产品编码
     */
    @TableField(value = "spec_code")
    private String specCode;

    /**
     * 产品主图
     */
    @TableField(value = "spec_picture")
    private String specPicture;

    /**
     * 产品规格
     */
    @TableField(value = "spec")
    private String spec;

    /**
     * 产品条形码
     */
    @TableField(value = "barcode")
    private String barcode;

    /**
     * 产品采购价
     */
    @TableField(value = "purchase_price")
    private BigDecimal purchasePrice;

    /**
     * 产品采购最高价
     */
    @TableField(value = "purchase_price_max")
    private BigDecimal purchasePriceMax;

    /**
     * 产品成本价
     */
    @TableField(value = "cost_price")
    private BigDecimal costPrice;

    /**
     * 产品市场价
     */
    @TableField(value = "market_price")
    private BigDecimal marketPrice;

    /**
     * 产品配送价
     */
    @TableField(value = "delivery_price")
    private BigDecimal deliveryPrice;

    /**
     * 产品批发价
     */
    @TableField(value = "trade_price")
    private BigDecimal tradePrice;

    /**
     * 产品零售价
     */
    @TableField(value = "retail_price")
    private BigDecimal retailPrice;

    /**
     * 产品会员价
     */
    @TableField(value = "vip_price")
    private BigDecimal vipPrice;

    /**
     * 产品最低售价
     */
    @TableField(value = "mix_price")
    private BigDecimal mixPrice;

    /**
     * 产品id
     */
    @TableField(value = "goods_id")
    private Integer goodsId;

    private static final long serialVersionUID = 1L;
}